export const modalMixins = {
    data() {
        return {
            flag: false,
            showClose: true,
            modalFlag: false,
            title: '',
            assembly: '',
            roleDialogVisible: false,
        }
    },
    methods: {
        close() {
            this.flag = false;
            this.roleDialogVisible = false;
        }
    }
};

export const detailMixins = {
    computed: {
        finisher() {
            return this.$route.query.finisher || '';
        },
        calibrationId() {
            return this.$route.query.calibrationId || '';
        }
    },
    methods: {
        goBack() {
            window.history.go(-1);
        }
    }
};
